home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-09-10 | 3.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: QD32Exists.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sat Sep 10 15:49:18 1994, modified Sat Sep 10 15:49:18 1994, creator 'CWIE', type ASCII, 3010 bytes "QD32Exists.c" , at 0xc42 572 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 51 44 33 32 45 78 | 69 73 74 73 2e 63 00 00 |..QD32Ex|ists.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b c2 00 | 00 02 3c aa 97 be 3e aa |........|..<...>.|
|00000060| 97 be 3e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..>.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e8 6b 00 00 |........|.....k..|
|00000080| 2f 2a 20 51 44 33 32 45 | 78 69 73 74 73 2e 63 0d |/* QD32E|xists.c.|
|00000090| 41 70 70 6c 65 20 73 75 | 67 67 65 73 74 73 2c 20 |Apple su|ggests, |
|000000a0| 61 6e 64 20 49 20 61 67 | 72 65 65 2c 20 74 68 61 |and I ag|ree, tha|
|000000b0| 74 20 61 6c 6c 20 6e 65 | 77 20 70 72 6f 67 72 61 |t all ne|w progra|
|000000c0| 6d 73 20 73 68 6f 75 6c | 64 20 75 73 65 20 74 68 |ms shoul|d use th|
|000000d0| 65 20 6e 65 77 20 47 65 | 73 74 61 6c 74 0d 6d 61 |e new Ge|stalt.ma|
|000000e0| 6e 61 67 65 72 2c 20 74 | 68 61 74 20 69 73 20 64 |nager, t|hat is d|
|000000f0| 6f 63 75 6d 65 6e 74 65 | 64 20 69 6e 20 49 6e 73 |ocumente|d in Ins|
|00000100| 69 64 65 20 4d 61 63 20 | 56 49 2e 20 49 74 27 73 |ide Mac |VI. It's|
|00000110| 20 76 65 72 79 20 65 61 | 73 79 20 74 6f 20 75 73 | very ea|sy to us|
|00000120| 65 2c 20 61 73 0d 69 6c | 6c 75 73 74 72 61 74 65 |e, as.il|lustrate|
|00000130| 64 20 62 65 6c 6f 77 2e | 0d 0d 54 68 65 20 6f 6e |d below.|..The on|
|00000140| 6c 79 20 73 75 62 74 6c | 65 74 79 20 69 6e 20 74 |ly subtl|ety in t|
|00000150| 68 65 20 63 6f 64 65 20 | 62 65 6c 6f 77 20 69 73 |he code |below is|
|00000160| 20 74 68 61 74 20 69 66 | 20 47 65 73 74 61 6c 74 | that if| Gestalt|
|00000170| 28 29 20 69 73 20 4e 4f | 54 20 70 72 65 73 65 6e |() is NO|T presen|
|00000180| 74 2d 2d 62 65 63 61 75 | 73 65 0d 74 68 65 20 70 |t--becau|se.the p|
|00000190| 72 6f 67 72 61 6d 20 69 | 73 20 62 65 69 6e 67 20 |rogram i|s being |
|000001a0| 72 75 6e 20 75 6e 64 65 | 72 20 61 20 53 79 73 74 |run unde|r a Syst|
|000001b0| 65 6d 20 62 65 66 6f 72 | 65 20 36 2e 30 34 2d 2d |em befor|e 6.04--|
|000001c0| 74 68 65 6e 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |then the| compile|
|000001d0| 72 27 73 20 67 6c 75 65 | 0d 63 6f 64 65 20 69 73 |r's glue|.code is|
|000001e0| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 63 61 75 | suppose|d to cau|
|000001f0| 73 65 20 47 65 73 74 61 | 6c 74 28 29 20 74 6f 20 |se Gesta|lt() to |
|00000200| 72 65 74 75 72 6e 20 77 | 69 74 68 20 61 6e 20 65 |return w|ith an e|
|00000210| 72 72 6f 72 20 63 6f 64 | 65 2c 20 72 61 74 68 65 |rror cod|e, rathe|
|00000220| 72 20 74 68 61 6e 0d 63 | 72 61 73 68 20 62 65 63 |r than.c|rash bec|
|00000230| 61 75 73 65 20 6f 66 20 | 61 20 6d 69 73 73 69 6e |ause of |a missin|
|00000240| 67 20 74 72 61 70 2e 20 | 53 61 6d 65 20 67 6f 65 |g trap. |Same goe|
|00000250| 73 20 66 6f 72 20 74 68 | 65 20 63 61 6c 6c 20 74 |s for th|e call t|
|00000260| 6f 20 53 79 73 45 6e 76 | 69 72 6f 6e 73 28 29 2c |o SysEnv|irons(),|
|00000270| 20 77 68 69 63 68 0d 73 | 68 6f 75 6c 64 20 62 65 | which.s|hould be|
|00000280| 20 70 72 65 73 65 6e 74 | 20 6f 6e 20 61 6c 6c 20 | present| on all |
|00000290| 53 79 73 74 65 6d 73 20 | 61 66 74 65 72 20 34 2e |Systems |after 4.|
|000002a0| 31 2e 0d 0d 54 68 65 20 | 61 6e 73 77 65 72 73 20 |1...The |answers |
|000002b0| 61 72 65 20 63 61 63 68 | 65 64 2c 20 73 6f 20 73 |are cach|ed, so s|
|000002c0| 75 62 73 65 71 75 65 6e | 74 20 63 61 6c 6c 73 20 |ubsequen|t calls |
|000002d0| 61 66 74 65 72 20 74 68 | 65 20 66 69 72 73 74 20 |after th|e first |
|000002e0| 77 69 6c 6c 20 62 65 20 | 71 75 69 63 6b 2e 0d 0d |will be |quick...|
|000002f0| 48 49 53 54 4f 52 59 3a | 0d 34 2f 32 31 2f 39 30 |HISTORY:|.4/21/90|
|00000300| 09 64 67 70 09 61 64 64 | 65 64 20 73 74 61 74 69 |.dgp.add|ed stati|
|00000310| 63 73 20 74 6f 20 61 76 | 6f 69 64 20 77 61 73 74 |cs to av|oid wast|
|00000320| 69 6e 67 20 74 69 6d 65 | 20 72 65 63 6f 6d 70 75 |ing time| recompu|
|00000330| 74 69 6e 67 20 74 68 69 | 73 2e 0d 32 2f 32 37 2f |ting thi|s..2/27/|
|00000340| 39 31 20 64 67 70 09 61 | 64 64 65 64 20 51 44 38 |91 dgp.a|dded QD8|
|00000350| 45 78 69 73 74 73 28 29 | 2e 0d 34 2f 31 35 2f 39 |Exists()|..4/15/9|
|00000360| 31 20 64 67 70 09 61 64 | 64 65 64 20 4e 65 77 50 |1 dgp.ad|ded NewP|
|00000370| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 28 29 20 |aletteMa|nager() |
|00000380| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 77 68 65 |to deter|mine whe|
|00000390| 74 68 65 72 20 74 68 65 | 20 63 61 6c 6c 73 20 64 |ther the| calls d|
|000003a0| 6f 63 75 6d 65 6e 74 65 | 64 0d 09 09 09 69 6e 20 |ocumente|d....in |
|000003b0| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|000003c0| 67 65 72 20 63 68 61 70 | 74 65 72 20 6f 66 20 49 |ger chap|ter of I|
|000003d0| 6e 73 69 64 65 20 4d 61 | 63 20 56 49 20 61 72 65 |nside Ma|c VI are|
|000003e0| 20 61 76 61 69 6c 61 62 | 6c 65 2e 0d 38 2f 32 34 | availab|le..8/24|
|000003f0| 2f 39 31 09 64 67 70 09 | 4d 61 64 65 20 63 6f 6d |/91.dgp.|Made com|
|00000400| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 54 48 49 |patible |with THI|
|00000410| 4e 4b 20 43 20 35 2e 30 | 2e 0d 33 2f 32 37 2f 39 |NK C 5.0|..3/27/9|
|00000420| 32 09 64 67 70 09 55 73 | 65 20 47 65 73 74 61 6c |2.dgp.Us|e Gestal|
|00000430| 74 28 29 20 69 6e 73 74 | 65 61 64 20 6f 66 20 53 |t() inst|ead of S|
|00000440| 79 73 45 6e 76 69 72 6f | 6e 73 28 29 2c 20 61 73 |ysEnviro|ns(), as|
|00000450| 20 72 65 63 6f 6d 6d 65 | 6e 64 65 64 20 62 79 20 | recomme|nded by |
|00000460| 41 70 70 6c 65 2e 20 0d | 39 2f 31 35 2f 39 32 20 |Apple. .|9/15/92 |
|00000470| 64 67 70 20 43 68 61 6e | 67 65 64 20 4e 65 77 50 |dgp Chan|ged NewP|
|00000480| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 28 29 20 |aletteMa|nager() |
|00000490| 74 6f 20 63 68 65 63 6b | 20 6f 6e 6c 79 20 74 68 |to check| only th|
|000004a0| 65 20 73 79 73 74 65 6d | 20 76 65 72 73 69 6f 6e |e system| version|
|000004b0| 2e 20 41 70 70 6c 65 0d | 09 09 09 64 6f 63 75 6d |. Apple.|...docum|
|000004c0| 65 6e 74 73 20 68 61 64 | 20 69 6e 64 69 63 61 74 |ents had| indicat|
|000004d0| 65 64 20 74 6f 20 6d 65 | 20 74 68 61 74 20 74 68 |ed to me| that th|
|000004e0| 65 20 6e 65 77 20 70 61 | 6c 65 74 74 65 20 6d 61 |e new pa|lette ma|
|000004f0| 6e 61 67 65 72 20 63 61 | 6c 6c 73 0d 09 09 09 77 |nager ca|lls....w|
|00000500| 6f 75 6c 64 20 62 65 20 | 61 76 61 69 6c 61 62 6c |ould be |availabl|
|00000510| 65 20 69 6e 20 61 6e 79 | 20 73 79 73 74 65 6d 20 |e in any| system |
|00000520| 69 66 20 51 44 33 32 20 | 77 65 72 65 20 70 72 65 |if QD32 |were pre|
|00000530| 73 65 6e 74 2c 20 73 6f | 20 49 20 68 61 64 0d 09 |sent, so| I had..|
|00000540| 09 09 4f 52 65 64 20 74 | 68 61 74 20 69 6e 2e 20 |..ORed t|hat in. |
|00000550| 48 6f 77 65 76 65 72 2c | 20 49 20 66 69 6e 64 20 |However,| I find |
|00000560| 74 68 61 74 20 74 68 65 | 20 48 61 73 44 65 70 74 |that the| HasDept|
|00000570| 68 28 29 20 63 61 6c 6c | 20 66 61 69 6c 73 20 6f |h() call| fails o|
|00000580| 6e 0d 09 09 09 6d 79 20 | 4d 61 63 20 49 49 63 69 |n....my |Mac IIci|
|00000590| 20 28 77 68 69 63 68 20 | 68 61 73 20 51 44 33 32 | (which |has QD32|
|000005a0| 20 69 6e 20 52 4f 4d 29 | 20 75 6e 64 65 72 20 53 | in ROM)| under S|
|000005b0| 79 73 74 65 6d 20 36 2e | 30 34 2e 20 53 6f 20 74 |ystem 6.|04. So t|
|000005c0| 68 65 20 6e 65 77 0d 09 | 09 09 74 65 73 74 20 69 |he new..|..test i|
|000005d0| 73 20 73 6c 69 67 68 74 | 6c 79 20 6d 6f 72 65 20 |s slight|ly more |
|000005e0| 63 6f 6e 73 65 72 76 61 | 74 69 76 65 20 74 68 61 |conserva|tive tha|
|000005f0| 6e 20 74 68 65 20 66 6f | 72 6d 65 72 2e 0d 34 2f |n the fo|rmer..4/|
|00000600| 31 37 2f 39 33 09 64 67 | 70 09 43 6f 72 72 65 63 |17/93.dg|p.Correc|
|00000610| 74 65 64 20 63 61 70 69 | 74 61 6c 69 7a 61 74 69 |ted capi|talizati|
|00000620| 6f 6e 20 6f 66 20 22 56 | 69 64 65 6f 54 6f 6f 6c |on of "V|ideoTool|
|00000630| 62 6f 78 2e 68 22 20 73 | 6f 20 74 68 61 74 0d 09 |box.h" s|o that..|
|00000640| 09 09 54 48 49 4e 4b 20 | 43 20 77 69 6c 6c 20 75 |..THINK |C will u|
|00000650| 73 65 20 74 68 65 20 70 | 72 65 2d 63 6f 6d 70 69 |se the p|re-compi|
|00000660| 6c 65 64 20 68 65 61 64 | 65 72 2e 0d 2a 2f 0d 0d |led head|er..*/..|
|00000670| 23 69 6e 63 6c 75 64 65 | 20 22 56 69 64 65 6f 54 |#include| "VideoT|
|00000680| 6f 6f 6c 62 6f 78 2e 68 | 22 0d 73 74 61 74 69 63 |oolbox.h|".static|
|00000690| 20 76 6f 69 64 20 45 78 | 69 73 74 73 28 76 6f 69 | void Ex|ists(voi|
|000006a0| 64 29 3b 09 09 2f 2a 20 | 49 6e 74 65 72 6e 61 6c |d);../* |Internal|
|000006b0| 20 72 6f 75 74 69 6e 65 | 20 74 6f 20 64 6f 20 74 | routine| to do t|
|000006c0| 68 65 20 77 6f 72 6b 2c | 20 6f 6e 63 65 2e 20 20 |he work,| once. |
|000006d0| 2a 2f 0d 73 74 61 74 69 | 63 20 76 6f 69 64 20 4f |*/.stati|c void O|
|000006e0| 6c 64 45 78 69 73 74 73 | 28 76 6f 69 64 29 3b 09 |ldExists|(void);.|
|000006f0| 2f 2a 20 48 61 6e 64 6c | 65 20 53 79 73 74 65 6d |/* Handl|e System|
|00000700| 73 20 34 2e 31 20 74 6f | 20 36 2e 30 33 20 20 2a |s 4.1 to| 6.03 *|
|00000710| 2f 0d 0d 73 74 61 74 69 | 63 20 42 6f 6f 6c 65 61 |/..stati|c Boolea|
|00000720| 6e 20 66 69 72 73 74 54 | 69 6d 65 3d 31 2c 71 44 |n firstT|ime=1,qD|
|00000730| 38 45 78 69 73 74 73 3d | 30 2c 71 44 33 32 45 78 |8Exists=|0,qD32Ex|
|00000740| 69 73 74 73 3d 30 2c 6e | 65 77 50 61 6c 65 74 74 |ists=0,n|ewPalett|
|00000750| 65 4d 61 6e 61 67 65 72 | 3d 30 3b 0d 0d 42 6f 6f |eManager|=0;..Boo|
|00000760| 6c 65 61 6e 20 51 44 33 | 32 45 78 69 73 74 73 28 |lean QD3|2Exists(|
|00000770| 76 6f 69 64 29 09 09 2f | 2a 20 44 6f 65 73 20 33 |void)../|* Does 3|
|00000780| 32 2d 62 69 74 20 71 75 | 69 63 6b 64 72 61 77 20 |2-bit qu|ickdraw |
|00000790| 65 78 69 73 74 3f 20 2a | 2f 0d 7b 0d 09 69 66 28 |exist? *|/.{..if(|
|000007a0| 66 69 72 73 74 54 69 6d | 65 29 45 78 69 73 74 73 |firstTim|e)Exists|
|000007b0| 28 29 3b 0d 09 72 65 74 | 75 72 6e 20 71 44 33 32 |();..ret|urn qD32|
|000007c0| 45 78 69 73 74 73 3b 0d | 7d 0d 0d 42 6f 6f 6c 65 |Exists;.|}..Boole|
|000007d0| 61 6e 20 51 44 38 45 78 | 69 73 74 73 28 76 6f 69 |an QD8Ex|ists(voi|
|000007e0| 64 29 09 09 09 2f 2a 20 | 44 6f 65 73 20 63 6f 6c |d).../* |Does col|
|000007f0| 6f 72 20 71 75 69 63 6b | 64 72 61 77 20 65 78 69 |or quick|draw exi|
|00000800| 73 74 3f 20 2a 2f 0d 7b | 0d 09 69 66 28 66 69 72 |st? */.{|..if(fir|
|00000810| 73 74 54 69 6d 65 29 45 | 78 69 73 74 73 28 29 3b |stTime)E|xists();|
|00000820| 0d 09 72 65 74 75 72 6e | 20 71 44 38 45 78 69 73 |..return| qD8Exis|
|00000830| 74 73 3b 0d 7d 0d 0d 42 | 6f 6f 6c 65 61 6e 20 4e |ts;.}..B|oolean N|
|00000840| 65 77 50 61 6c 65 74 74 | 65 4d 61 6e 61 67 65 72 |ewPalett|eManager|
|00000850| 28 76 6f 69 64 29 09 2f | 2a 20 44 6f 65 73 20 69 |(void)./|* Does i|
|00000860| 74 20 65 78 69 73 74 3f | 20 2a 2f 0d 7b 0d 09 69 |t exist?| */.{..i|
|00000870| 66 28 66 69 72 73 74 54 | 69 6d 65 29 45 78 69 73 |f(firstT|ime)Exis|
|00000880| 74 73 28 29 3b 0d 09 72 | 65 74 75 72 6e 20 6e 65 |ts();..r|eturn ne|
|00000890| 77 50 61 6c 65 74 74 65 | 4d 61 6e 61 67 65 72 3b |wPalette|Manager;|
|000008a0| 0d 7d 0d 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |.}..stat|ic void |
|000008b0| 45 78 69 73 74 73 28 76 | 6f 69 64 29 09 09 2f 2a |Exists(v|oid)../*|
|000008c0| 20 49 6e 74 65 72 6e 61 | 6c 20 72 6f 75 74 69 6e | Interna|l routin|
|000008d0| 65 20 74 6f 20 64 6f 20 | 74 68 65 20 77 6f 72 6b |e to do |the work|
|000008e0| 2c 20 6f 6e 63 65 2e 20 | 20 2a 2f 0d 7b 0d 09 69 |, once. | */.{..i|
|000008f0| 6e 74 20 65 72 72 6f 72 | 3b 0d 09 6c 6f 6e 67 20 |nt error|;..long |
|00000900| 76 65 72 73 69 6f 6e 3b | 0d 0d 09 66 69 72 73 74 |version;|...first|
|00000910| 54 69 6d 65 3d 30 3b 0d | 09 65 72 72 6f 72 3d 47 |Time=0;.|.error=G|
|00000920| 65 73 74 61 6c 74 28 67 | 65 73 74 61 6c 74 56 65 |estalt(g|estaltVe|
|00000930| 72 73 69 6f 6e 2c 26 76 | 65 72 73 69 6f 6e 29 3b |rsion,&v|ersion);|
|00000940| 09 2f 2a 20 49 73 20 47 | 65 73 74 61 6c 74 20 61 |./* Is G|estalt a|
|00000950| 76 61 69 6c 61 62 6c 65 | 3f 20 2a 2f 0d 09 69 66 |vailable|? */..if|
|00000960| 28 65 72 72 6f 72 29 7b | 0d 09 09 4f 6c 64 45 78 |(error){|...OldEx|
|00000970| 69 73 74 73 28 29 3b 09 | 09 09 09 09 09 2f 2a 20 |ists();.|...../* |
|00000980| 4e 6f 2e 20 54 72 79 20 | 53 79 73 45 6e 76 69 72 |No. Try |SysEnvir|
|00000990| 6f 6e 73 28 29 2e 20 2a | 2f 0d 09 09 72 65 74 75 |ons(). *|/...retu|
|000009a0| 72 6e 3b 0d 09 7d 0d 09 | 47 65 73 74 61 6c 74 28 |rn;..}..|Gestalt(|
|000009b0| 67 65 73 74 61 6c 74 51 | 75 69 63 6b 64 72 61 77 |gestaltQ|uickdraw|
|000009c0| 56 65 72 73 69 6f 6e 2c | 26 76 65 72 73 69 6f 6e |Version,|&version|
|000009d0| 29 3b 0d 09 71 44 38 45 | 78 69 73 74 73 20 3d 20 |);..qD8E|xists = |
|000009e0| 76 65 72 73 69 6f 6e 3e | 3d 67 65 73 74 61 6c 74 |version>|=gestalt|
|000009f0| 38 42 69 74 51 44 3b 0d | 09 71 44 33 32 45 78 69 |8BitQD;.|.qD32Exi|
|00000a00| 73 74 73 20 3d 20 76 65 | 72 73 69 6f 6e 3e 3d 67 |sts = ve|rsion>=g|
|00000a10| 65 73 74 61 6c 74 33 32 | 42 69 74 51 44 3b 0d 09 |estalt32|BitQD;..|
|00000a20| 47 65 73 74 61 6c 74 28 | 67 65 73 74 61 6c 74 53 |Gestalt(|gestaltS|
|00000a30| 79 73 74 65 6d 56 65 72 | 73 69 6f 6e 2c 26 76 65 |ystemVer|sion,&ve|
|00000a40| 72 73 69 6f 6e 29 3b 0d | 09 6e 65 77 50 61 6c 65 |rsion);.|.newPale|
|00000a50| 74 74 65 4d 61 6e 61 67 | 65 72 20 3d 20 76 65 72 |tteManag|er = ver|
|00000a60| 73 69 6f 6e 3e 3d 30 78 | 36 30 35 3b 0d 7d 0d 0d |sion>=0x|605;.}..|
|00000a70| 23 64 65 66 69 6e 65 20 | 6d 69 73 73 69 6e 67 54 |#define |missingT|
|00000a80| 72 61 70 20 30 78 41 38 | 39 46 0d 23 64 65 66 69 |rap 0xA8|9F.#defi|
|00000a90| 6e 65 20 51 44 33 32 54 | 72 61 70 09 30 78 41 42 |ne QD32T|rap.0xAB|
|00000aa0| 30 33 0d 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 |03..stat|ic void |
|00000ab0| 4f 6c 64 45 78 69 73 74 | 73 28 76 6f 69 64 29 09 |OldExist|s(void).|
|00000ac0| 2f 2a 20 48 61 6e 64 6c | 65 20 53 79 73 74 65 6d |/* Handl|e System|
|00000ad0| 73 20 34 2e 31 20 74 6f | 20 36 2e 30 33 20 20 2a |s 4.1 to| 6.03 *|
|00000ae0| 2f 0d 7b 0d 09 69 6e 74 | 20 65 72 72 6f 72 3b 0d |/.{..int| error;.|
|00000af0| 09 53 79 73 45 6e 76 52 | 65 63 20 74 68 65 57 6f |.SysEnvR|ec theWo|
|00000b00| 72 6c 64 3b 0d 09 0d 09 | 66 69 72 73 74 54 69 6d |rld;....|firstTim|
|00000b10| 65 3d 30 3b 0d 09 65 72 | 72 6f 72 3d 53 79 73 45 |e=0;..er|ror=SysE|
|00000b20| 6e 76 69 72 6f 6e 73 28 | 31 2c 26 74 68 65 57 6f |nvirons(|1,&theWo|
|00000b30| 72 6c 64 29 3b 09 09 2f | 2a 20 49 73 20 53 79 73 |rld);../|* Is Sys|
|00000b40| 45 6e 76 69 72 6f 6e 73 | 20 61 76 61 69 6c 61 62 |Environs| availab|
|00000b50| 6c 65 3f 20 2a 2f 0d 09 | 69 66 28 65 72 72 6f 72 |le? */..|if(error|
|00000b60| 29 72 65 74 75 72 6e 3b | 09 09 09 09 09 2f 2a 20 |)return;|...../* |
|00000b70| 4e 6f 2e 20 2a 2f 0d 09 | 71 44 38 45 78 69 73 74 |No. */..|qD8Exist|
|00000b80| 73 3d 74 68 65 57 6f 72 | 6c 64 2e 68 61 73 43 6f |s=theWor|ld.hasCo|
|00000b90| 6c 6f 72 51 44 3b 0d 09 | 69 66 28 71 44 38 45 78 |lorQD;..|if(qD8Ex|
|00000ba0| 69 73 74 73 29 7b 0d 09 | 09 69 66 28 4e 47 65 74 |ists){..|.if(NGet|
|00000bb0| 54 72 61 70 41 64 64 72 | 65 73 73 28 51 44 33 32 |TrapAddr|ess(QD32|
|00000bc0| 54 72 61 70 2c 54 6f 6f | 6c 54 72 61 70 29 20 21 |Trap,Too|lTrap) !|
|00000bd0| 3d 20 4e 47 65 74 54 72 | 61 70 41 64 64 72 65 73 |= NGetTr|apAddres|
|00000be0| 73 28 6d 69 73 73 69 6e | 67 54 72 61 70 2c 54 6f |s(missin|gTrap,To|
|00000bf0| 6f 6c 54 72 61 70 29 29 | 0d 09 09 09 71 44 33 32 |olTrap))|....qD32|
|00000c00| 45 78 69 73 74 73 3d 31 | 3b 0d 09 09 6e 65 77 50 |Exists=1|;...newP|
|00000c10| 61 6c 65 74 74 65 4d 61 | 6e 61 67 65 72 3d 74 68 |aletteMa|nager=th|
|00000c20| 65 57 6f 72 6c 64 2e 73 | 79 73 74 65 6d 56 65 72 |eWorld.s|ystemVer|
|00000c30| 73 69 6f 6e 3e 3d 30 78 | 36 30 35 3b 0d 09 7d 0d |sion>=0x|605;..}.|
|00000c40| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 de | 00 00 00 de 00 00 00 5e |........|.......^|
|00000c90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ca0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000cb0| 0c 51 44 33 32 45 78 69 | 73 74 73 2e 63 69 02 00 |.QD32Exi|sts.ci..|
|00000cc0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 28 04 80 |..TEXTCW|IE...(..|
|00000cd0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 28 04 80 |..TEXTCW|IE...(..|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 a2 22 1e e1 00 00 | 0b c2 00 00 02 3c 65 72 |..."....|.....<er|
|00000d00| 66 61 63 65 20 74 6f 20 | 74 68 65 20 4d 61 63 69 |face to |the Maci|
|00000d10| 6e 74 6f 73 68 20 4c 69 | 62 72 61 72 69 65 73 0d |ntosh Li|braries.|
|00000d20| 0d 0d 09 43 6f 70 79 72 | 69 67 68 74 20 41 70 70 |...Copyr|ight App|
|00000d30| 6c 65 20 43 6f 6d 70 75 | 74 65 72 2c 20 49 6e 63 |le Compu|ter, Inc|
|00000d40| 2e 09 31 39 38 37 2d 31 | 39 38 39 0d 09 41 6c 6c |..1987-1|989..All|
|00000d50| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|00000d60| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00000d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000d80| 00 00 00 1e 00 50 00 20 | 01 8d 02 3d 00 50 00 20 |.....P. |...=.P. |
|00000d90| 01 8d 02 3d 00 00 00 00 | 00 00 00 00 00 00 00 00 |...=....|........|
|00000da0| 00 00 00 00 00 64 00 05 | 00 00 08 30 00 00 08 36 |.....d..|...0...6|
|00000db0| 07 45 78 69 73 74 73 00 | 00 00 07 bf 00 00 07 d0 |.Exists.|........|
|00000dc0| 11 4e 65 77 50 61 6c 65 | 74 74 65 4d 61 6e 61 67 |.NewPale|tteManag|
|00000dd0| 65 72 00 00 0a 32 00 00 | 0a 3b 09 4f 6c 64 45 78 |er...2..|.;.OldEx|
|00000de0| 69 73 74 73 00 00 06 e5 | 00 00 06 ef 0b 51 44 33 |ists....|.....QD3|
|00000df0| 32 45 78 69 73 74 73 00 | 00 00 07 53 00 00 07 5c |2Exists.|...S...\|
|00000e00| 09 51 44 38 45 78 69 73 | 74 73 00 00 00 48 00 09 |.QD8Exis|ts...H..|
|00000e10| 4d 6f 6e 61 63 6f 00 00 | 00 00 00 00 00 00 00 00 |Monaco..|........|
|00000e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e30| 00 03 00 04 00 57 00 20 | 01 94 02 3d 00 57 00 20 |.....W. |...=.W. |
|00000e40| 01 94 02 3d ad b4 5e 19 | 00 00 09 9f 00 00 09 c8 |...=..^.|........|
|00000e50| 00 00 08 21 01 00 00 00 | 00 04 00 01 00 01 00 00 |...!....|........|
|00000e60| 01 00 00 00 01 de 00 00 | 00 de 00 00 00 5e 01 b5 |........|.....^..|
|00000e70| cc 08 3a 06 00 00 00 1c | 00 5e 00 01 4d 50 53 52 |..:.....|.^..MPSR|
|00000e80| 00 02 00 12 4d 57 42 42 | 00 00 00 36 03 f0 ff ff |....MWBB|...6....|
|00000e90| 00 00 00 00 00 00 00 00 | 03 ef ff ff 00 00 00 22 |........|......."|
|00000ea0| 00 00 00 00 03 ed ff ff | 00 00 00 8a 00 00 00 00 |........|........|
|00000eb0| 03 f0 ff ff 00 00 00 d6 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+